The opaque region of the window can be updated before we're requested
its creation on the compositor.
https://bugzilla.gnome.org/show_bug.cgi?id=786673
wl_region = wl_region_from_cairo_region (GDK_WAYLAND_DISPLAY (gdk_window_get_display (window)),
impl->opaque_region);
- wl_surface_set_opaque_region (impl->display_server.wl_surface, wl_region);
+ if (impl->display_server.wl_surface)
+ wl_surface_set_opaque_region (impl->display_server.wl_surface, wl_region);
if (wl_region != NULL)
wl_region_destroy (wl_region);